<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">

<body ontouchstart="f1()" ontouchmove="f2(e)" ontouchend="f3()"><div id="d1"></div></body>

<script>
function f1(){
    d1.innerHTML = "1";
}
function f2(e){
    d1.innerHTML = e.touches[0].pageX;
}
function f3(){
    d1.innerHTML = "3";
}
</script>